// <copyright file="DateFormat.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

namespace YUIAspNet
{
    /// <summary>
    /// Date format for a DataTable cell.
    /// </summary>
    public class DateFormat : IDataTableFormat
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="DateFormat"/> class.
        /// </summary>
        public DateFormat()
        {
            Format = "%m/%d/%Y";
        }

        /// <summary>
        /// Gets or sets the date format.
        /// </summary>
        /// <value>The date format.</value>
        public string Format { get; set; }

        /// <summary>
        /// Gets the format.
        /// </summary>
        /// <value>The format.</value>
        public ColumnFormat DataTableFormat
        {
            get { return ColumnFormat.Date; }
        }
    }
}
